/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.DataEntity;

import javax.validation.constraints.NotNull;

/**
 * 商品属性Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class Attributes extends DataEntity<Attributes> {
	
	private static final long serialVersionUID = 1L;
	private Integer attrId;		// attr_id
	private Integer cateId;		// 父类ID，取自商品分类表 dfc_category
	private String attrName;		// 属性名称
	private Integer attrType;		// 属性选择方式，默认0
	private String attrDesc;		// 属性描述
	private Integer sortNo;		// 排序，默认0
	
	public Attributes() {
		super();
	}

	@NotNull(message="attr_id不能为空")
	@ExcelField(title="attr_id", align=2, sort=0)
	public Integer getAttrId() {
		return attrId;
	}

	public void setAttrId(Integer attrId) {
		this.attrId = attrId;
	}
	
	@ExcelField(title="父类ID，取自商品分类表 dfc_category", align=2, sort=1)
	public Integer getCateId() {
		return cateId;
	}

	public void setCateId(Integer cateId) {
		this.cateId = cateId;
	}
	
	@ExcelField(title="属性名称", align=2, sort=2)
	public String getAttrName() {
		return attrName;
	}

	public void setAttrName(String attrName) {
		this.attrName = attrName;
	}
	
	@ExcelField(title="属性选择方式，默认0", align=2, sort=3)
	public Integer getAttrType() {
		return attrType;
	}

	public void setAttrType(Integer attrType) {
		this.attrType = attrType;
	}
	
	@ExcelField(title="属性描述", align=2, sort=4)
	public String getAttrDesc() {
		return attrDesc;
	}

	public void setAttrDesc(String attrDesc) {
		this.attrDesc = attrDesc;
	}
	
	@ExcelField(title="排序，默认0", align=2, sort=5)
	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}
	
}